# urls.py
from django.urls import path

from movies.api import MovieDetailAPIView, MovieListCreateAPIView

app_name = "movies"  # 定义应用命名空间


urlpatterns = [
    path("", MovieListCreateAPIView.as_view(), name="movie-api"),  # 电影列表和创建API
    path("<int:pk>/", MovieDetailAPIView.as_view(), name="movie-api-detail"),  # 电影详情API
]
